package com.nj.liandi.gulimall.seckill.service;

import com.nj.liandi.gulimall.seckill.to.SeckillSkuRedisTo;

import java.util.List;

/**
 * description: SeckillService
 * date: 2021/11/9 16:26
 * author: maizj
 * version: 1.0
 */
public interface SeckillService {
    
    /** description: 将最近三天要秒杀的商品缓存到redis中
     * version: 1.0 
     * date: 2021/11/10 14:35
     * */
    void uploadSeckillSkuLatest3Days();

    /** description: 查出当前需要秒杀的商品
     * version: 1.0 
     * date: 2021/11/10 14:20
     * */
    List<SeckillSkuRedisTo> getCurrentSeckillSkus();

    /** description: 通过skuid去redis查询当前商品有没有参与秒杀
     * version: 1.0 
     * date: 2021/11/10 17:28
     * */
    SeckillSkuRedisTo getSkuSeckillInof(Long skuId);

    /** description: 立即秒杀商品
     * version: 1.0 
     * date: 2021/11/11 17:28
     * */
    String kill(String killId, String key, Integer num);
}
